package com.tjhk.java.tech.fina;

public class FinalData {
    Value v1 = new Value();
    final Value v2 = new Value();
    static final Value v3 = new Value();
    final int i4 = (int) (Math.random()*20);
    static final int i5 = (int) (Math.random()*20);
    {
        System.out.println(" i4:"+i4+" i5: "+i5);
    }
    FinalData(){
        System.out.println(" i4:"+i4+" i5: "+i5);
    }
    void print(String id){
        System.out.println(id+" i4:"+i4+" i5: "+i5);
    }
    public static void main(String[] args) {
        FinalData f1 = new FinalData();
        System.out.println(f1.v1);
        System.out.println(f1.v2);
        System.out.println(f1.v3);
        f1.v2.i++;
        FinalData f2 = new FinalData();
        f1.print("f1");
        f2.print("f2");
    }
}
